import { ApiProperty } from "@nestjs/swagger";
import { BaseEntity } from "src/common/entities/entities";
import { Column, Entity } from "typeorm";

@Entity('web-config')
export class WebConfigEntity extends BaseEntity {
  /** 网站标题 */
  @ApiProperty({ example: 'title', description: '网站标题' })
  @Column({
    type: 'varchar',
    length: 100,
    comment: '网站标题',
  })
  title: string;
  /** 副标题 */
  @ApiProperty({ example: 'subtitle', description: '副标题' })
  @Column({
    type: 'varchar',
    comment: '副标题',
  })
  subtitle: string;

  /** 作者 */
  @ApiProperty({ example: 'author', description: '作者' })
  @Column({
    type: 'varchar',
    comment: '作者',
  })
  author: string;

  /** 网站详情 */
  @ApiProperty({ example: 'description', description: '网站详情' })
  @Column({
    type: 'varchar',
    comment: '网站详情',
  })
  description: string;

  /** 关键字 */
  @ApiProperty({ example: 'keywords', description: '关键字' })
  @Column({
    type: 'varchar',
    comment: '关键字',
  })
  keywords: string;

  /** 语言 */
  @ApiProperty({ example: 'language', description: '语言' })
  @Column({
    type: 'varchar',
    comment: '语言',
  })
  language: string;
}
